package creational.singleton;

/**
 * @Description: 懒汉式（4）内部类
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class Singleton6 {
    private Singleton6() {

    }

    private static class SingletonInstance {
        private static final Singleton6 INSTANCE = new Singleton6();
    }

    public Singleton6 getInstance() {
        return SingletonInstance.INSTANCE;
    }
}
